package types;

import java.io.Serializable;
import java.util.Date;

public class Message implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5498053195403893329L;
	
	private MessageType mMessageType;
	private String mMessage;
	private Date mDate;
	private String mCreator;
	
	public Message(String message, String creator, MessageType messageType) {
		mMessage = message;
		mMessageType = messageType;
		mCreator = creator;
	}
	
	public Message(String message, Date date, String creator, MessageType type) {
		mMessage = message;
		mDate = date;
		mMessageType = type;
		mCreator = creator;
				
	}

	public String getMessage() {
		return mMessage;
	}

	public void setMessage(String mMessage) {
		this.mMessage = mMessage;
	}

	public MessageType getMessageType() {
		return mMessageType;
	}

	public void setMessageType(MessageType messageType) {
		this.mMessageType = messageType;
	}

	public Date getDate() {
		return mDate;
	}

	public void setDate(Date mDate) {
		this.mDate = mDate;
	}

	public String getCreator() {
		return mCreator;
	}

	public void setCreator(String mCreator) {
		this.mCreator = mCreator;
	}

}
